package com.pig4cloud.pigx.knowledge.service;

import com.pig4cloud.pigx.knowledge.dto.LllAiOcrResult;
import dev.langchain4j.service.UserMessage;

/**
 * OCR 结果提取器
 *
 * @author lengleng
 * @date 2024/09/17
 */
public interface OcrResultExtractor {

	/**
	 * 解析文本
	 * @param text 文本
	 * @return {@link LllAiOcrResult }
	 */
	@UserMessage("Extract a json pojo result from the following text: {{it}}")
	LllAiOcrResult extractFrom(String text);

}
